import request from "@/util/request"
export function test(){
    return request({
        url:"http://localhost:8081/demo8_war_exploded/adv?method=show",
        method:'get'
    })
}
export function test1(){
    return request({
        url:"http://localhost:9999/demo9_war_exploded/shopping?method=show",
        method:"get"
    })
}
export function showDesc(id){
    return request({
        url: `http://localhost:8081/demo8_war_exploded/adv?method=showDesc&id=${id}`,
        method: "get"
    });
}
export function showDescs(id){
    return request({
        url:`http://localhost:9999/demo9_war_exploded/shopping?method=showDesc&id=${id}`,
        method:"get"
    })
}
    export function logins(names){
        return request({
            url:`http://localhost:9999/demo9_war_exploded/user?method=showDesc&names=${names}`,
            method:"get"
        })
}
export function cartadd(data){
    return request({
        url:'/tianjia',
        method:"post",
        data:data
    })
}